
export default {
	namespaced: true, //命名空间
	state: {
		counter: 99
	},
	getters: {
		counterFixed: (state) => state.counter.toFixed(5)
	},
	mutations: {
		SET_COUNTER(state) {
			state.counter--
		}
	},
	actions: {
		counterJian(context) {
			context.commit("SET_COUNTER")
		}
	}
}

